fix: MCP createCloudFunction 工具参数设计不清晰导致 HTTP 云函数创建失败#624
Open
fix: MCP createCloudFunction 工具参数设计不清晰导致 HTTP 云函数创建失败#624
Conversation
…ssue_mo8ywjss_siyh6g)
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Member
Author
Attribution post-PR evaluation
Cases
|
Member
Author
|
"\n\n对于 HTTP 函数,还必须提供 functionRootPath 或 zipFile 参数来指定代码位置。", 不要老是强化 zipfile ,建议强化functionRootPath |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Attribution issue
Automation summary
manageFunctionstool's parameter descriptions forcreateFunctionaction were unclear about what fields are required for HTTP cloud functions. Specifically: (1) Thefuncparameter description didn't explain which fields are required for HTTP functions (type,protocolType,runtime), and (2) ThefunctionRootPathparameter description didn't clearly indicate it's required (along withzipFile) when creating HTTP functions.mcp/src/tools/functions.ts:funcparameter description to clearly list required fields for HTTP functions:name(required),type: "HTTP",protocolType: "HTTP"(or"WS"for WebSocket),runtime(recommended"Nodejs18.15")functionRootPathdescription that it's required for HTTP functions whenzipFileis not providedtsc --noEmitpasses without errorsChanged files
mcp/src/tools/functions.ts